package io;

import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

public class PWDemo2 {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fos = new FileOutputStream("pw2.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos);
        BufferedWriter bfw = new BufferedWriter(osw);
        PrintWriter pw = new PrintWriter(bfw);

        pw.println("我想就这样牵着你的手不放开");
        pw.println("爱能不能够简简单单没有伤害");

        System.out.println("写入结束");
        pw.close();
    }
}
